package com.example.management.system.domain

import java.io.Serializable
import org.springframework.format.annotation.DateTimeFormat
import java.util.*

class UserDO : Serializable {

    companion object {
         var serialVersionUid: Long = 1
    }
    //
    var userId: Long? = null
    // 用户名
    var username: String? = null
    // 用户真实姓名
    var name: String? = null
    // 密码
    var password: String? = null
    // 部门
    var deptId: Long? = null
    var deptName: String? = null
    // 邮箱
    var email: String? = null
    // 手机号
    var mobile: String? = null
    // 状态 0:禁用，1:正常
    var status: Int? = null
    // 创建用户id
     var userIdCreate: Long? = null
    // 创建时间
     var gmtCreate: Date? = null
    // 修改时间
     var gmtModified: Date? = null
    //角色
    var roleIds: List<Long>? = null
    //性别
     var sex: Long? = null
    //出身日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
     var birth: Date? = null
    //图片ID
    var picId: Long? = null
    //现居住地
     var liveAddress: String? = null
    //爱好
     var hobby: String? = null
    //省份
     var province: String? = null
    //所在城市
     var city: String? = null
    //所在地区
     var district: String? = null

    
}